<template>
  <div class="te-card" @click.stop="onClick">
    <slot name="header"></slot>
    <slot name="content">

    </slot>
  </div>
</template>

<script>
  export default {
    name: 'TeCard',
    props: {
      clickAble:Boolean
    },
    methods: {
      onClick(e){
          if(this.clickAble){
            this.$emit('click',e);
          }
      }
    }
  };
</script>

<style scoped>
    .te-card{
        padding: 20px;
        background: rgba(200, 200, 200,0.1);
        border-radius: 4px;
    }
</style>
